<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>vue模板语法</title>
</head>
<body>
    <div id="app">
        <div v-text="name2"></div>
        <div v-html="name2"></div>
    </div>
</body>
<script src="vue.js"></script>
<script>

    var vm = new Vue({
        el: '#app',
        data: {
            name: 'hello world!',
            name2: '<strong>hello world</strong>'
        },
    })
</script>
</html>